package Service.Impl;

import Dao.ElderMapper;
import Model.Elder;

import Service.ElderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("elderService")
public class ElderServiceImpl implements ElderService {
//    @Autowired
//    EldersDao elderDao;
    @Autowired
    ElderMapper elderMapper;

    @Override
    public List<Elder> FindAllElder() {
        return elderMapper.FindAllElder();
    }
}
